/* eslint-disable */
import { aggregateMenusOptions,
         showChildMenus,
         childMenusList,
         childMenus,
         aggregateChildMenusOptions,
         editChildMenus
        } from '@/api/authorityApi'
const authority = {
    namespaced: true,
    state: {
        columnType: '',
        systemData: [],
        editData: {}
    },
    getters: {},
    mutations: {},
    actions: {
        AggregateMenusOptions({ state, commit, dispatch }, params) {
            return new Promise((resolve, reject) => {
                aggregateMenusOptions(params).then(res => {
                    resolve(res)
                })
            })
        },
        ShowChildMenus({ state, commit, dispatch }, params) {
            return new Promise((resolve, reject) => {
                showChildMenus(params).then(res => {
                    resolve(res)
                })
            })
        },
        ChildMenusList({ state, commit, dispatch }, params) {
            return new Promise((resolve, reject) => {
                childMenusList(params).then(res => {
                    resolve(res)
                })
            })
        },
        ChildMenus({ state, commit, dispatch }, params) {
            return new Promise((resolve, reject) => {
                childMenus(params).then(res => {
                    resolve(res)
                })
            })
        },
        AggregateChildMenusOptions({ state, commit, dispatch }, params) {
            return new Promise((resolve, reject) => {
                aggregateChildMenusOptions(params).then(res => {
                    resolve(res)
                })
            })
        },
        EditChildMenus({ state, commit, dispatch }, params) {
            return new Promise((resolve, reject) => {
                editChildMenus(params).then(res => {
                    resolve(res)
                })
            })
        }
    }
}
export default authority